Page({
  data: {
      src:"/images/logo.jpg",
      name:"这里是昵称"
  },
 getUserProfile(e) {
   wx.getUserProfile({
     desc: '获取用户信息',
     success:(res)=>{
       this.setData({
         src:res.userInfo.src,
         name:res.userInfo.nickName
       })
     }
   })
 }
})
